package com.ming.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *@Author:何元才
 *@Desc:
 *@data:2021-04-09 23:15
 */
/**
    * 权限表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_permission")
public class SysPermission implements Serializable {
    /**
     * 权限ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 权限名称
     */
    @TableField(value = "title")
    private String title;

    /**
     * 权限图标
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 权限连接 菜单请求的URL地址
     */
    @TableField(value = "href")
    private String href;

    /**
     * 是否展开 1.展开 0.不展开
     */
    @TableField(value = "spread")
    private Boolean spread;

    /**
     * 权限类型 1.菜单 2.按钮
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 权限自定义标识
     */
    @TableField(value = "tag")
    private String tag;

    /**
     * 排序 越大越靠前
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 父权限ID 默认0 表示一级菜单
     */
    @TableField(value = "parent_id")
    private Integer parentId;

}